import { RouteRecordRaw } from 'vue-router'
import SiteLayout from '@/layout/index.vue'
import userRoutes from './user'
import settingRoutes from './setting'


const routes: RouteRecordRaw[] = [
    {
        path: '/',
        component: SiteLayout,
        children: [
            {
                path: 'dashboard',
                component: () => import('@/views/dashboard/index.vue'),
                meta: {
                    title: '仪表盘',
                }
            },
        ]
    },
    ...userRoutes,
    ...settingRoutes,
    {
        path: '/login',
        component: () => import('@/views/login/index.vue'),
        meta: { 
            title: '登录',
        },
    },

]

export default routes